<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>点击</button>
</body>
</html>
<script>
    var button1=document.querySelector('button')
    button1.onclick=function(){
        button1.style.fontSize='30px'
        button1.style.color='red';
        console.log(button1);
    }
</script>